package com.example.hhh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController // 添加这个注解
public class HhhApplication {

	public static void main(String[] args) {
		SpringApplication.run(HhhApplication.class, args);
	}

	// 添加这个简单接口
	@GetMapping("/")
	public String hello() {
		return "hello world";
	}
}